
import {get} from "../untils/db"

Page({
  data:{
  users:"",
  rows:""
  },
  async onLoad(){
  this.setData({
    users:wx.getStorageSync('users')
  })
  let token=wx.getStorageSync('login')
  console.log(this.data.users.deptId);
   let res=await get("/api/employee/members",{deptId:this.data.users.deptId},token)
   console.log(res.data.rows);
   this.setData({
   rows:res.data.rows
   })
  },

})